/**
 * Created by vincent on 2017/9/11.
 */
moduleStudyMap.config(function ($stateProvider) {
    $stateProvider
        .state("sz.studyMap", {
            cache: false,
            url: '/studyMap',
            views: {
                'sz-main': {
                    templateUrl: 'templates/StudyMap.html',
                    controller: 'StudyMapController'
                }
            }
        })
        .state('sz.studyMap.classGroup', {
            cache: false,
            url: '/classGroup',
            views: {
                'map-child': {
                    templateUrl: 'templates/StudyClassGroup.html',
                    controller: 'StudyClassGroupController'
                }
            }
        })
        .state('sz.forumPage', {
            cache: false,
            url: '/forumPage',
            views: {
                'sz-main': {
                    templateUrl: 'templates/ForumPage.html',
                    controller: 'ForumPageController'
                }
            }
        })
        .state('sz.forumPage.forumReply', {
            cache: false,
            url: '/forumReply',
            views: {
                'forum-child': {
                    templateUrl: 'templates/ForumReply.html',
                    controller: 'ForumReplyController'
                }
            }
        })
        .state('sz.eventPage', {
            cache: false,
            url: '/eventPage',
            views: {
                'sz-main': {
                    templateUrl: 'templates/EventPage.html',
                    controller: 'EventPageController'
                }
            }
        })
        .state('sz.taskContentList', {
            cache: false,
            url: '/taskContentList',
            views: {
                'sz-main': {
                    templateUrl: 'templates/TaskContentList.html',
                    controller: 'TaskContentListController'
                }
            }
        })
        .state('sz.badgePage', {
            cache: false,
            url: '/badgePage',
            views: {
                'sz-main': {
                    templateUrl: 'templates/BadgePage.html',
                    controller: 'BadgePageController'
                }
            }
        });

    DialogState.addState("addStudyMap", {
        template: 'templates/AddStudyMapMgt.html',
        controller: 'AddStudyMapController'
    });

    DialogState.addState("editStudyMap", {
        template: 'templates/EditStudyMapMgt.html',
        controller: 'EditStudyMapController'
    });

    DialogState.addState("addStudyClassGroup", {
        template: 'templates/AddStudyClassGroupMgt.html',
        controller: 'AddStudyClassGroupController'
    });

    DialogState.addState("editStudyClassGroup", {
        template: 'templates/EditStudyClassGroupMgt.html',
        controller: 'EditStudyClassGroupController'
    });

    DialogState.addState("addStudyClass", {
        template: 'templates/AddStudyClassMgt.html',
        controller: 'AddStudyClassController'
    });

    DialogState.addState("editStudyClass", {
        template: 'templates/EditStudyClassMgt.html',
        controller: 'EditStudyClassController'
    });

    DialogState.addState("setGaugeStudyClass", {
        template: 'templates/SetGaugeMgt.html',
        controller: 'SetGaugeController'
    });

    DialogState.addState("setExaminationStudyClass", {
        template: 'templates/SetExaminationMgt.html',
        controller: 'SetExaminationController'
    });

    DialogState.addState("setExaminationTipsStudyClass", {
        template: 'templates/SetExaminationTipsMgt.html',
        controller: 'SetExaminationTipsController'
    });

    DialogState.addState("setH5StudyClass", {
        template: 'templates/SetH5Mgt.html',
        controller: 'SetH5Controller'
    });

    DialogState.addState("setMicroH5StudyClass", {
        template: 'templates/SetMicroH5Mgt.html',
        controller: 'SetMicroH5Controller'
    });

    DialogState.addState("setTaskStudyClass", {
        template: 'templates/SetTaskMgt.html',
        controller: 'SetTaskController'
    });

    DialogState.addState("addTaskStudy", {
        template: 'templates/AddTaskStudyMgt.html',
        controller: 'AddTaskStudyController'
    });

    DialogState.addState("editTaskStudy", {
        template: 'templates/EditTaskStudyMgt.html',
        controller: 'EditTaskStudyController'
    });


    DialogState.addState("setupBadge", {
        template: 'templates/SetupBadgeMgt.html',
        controller: 'SetupBadgeController'
    });

    DialogState.addState("setupQuestionnaire", {
        template: 'templates/SetupQuestionnaire.html',
        controller: 'SetupQuestionnaireController'
    })


    DialogState.addState("setupEvent", {
        template: 'templates/SetupEventMgt.html',
        controller: 'SetupEventController'
    });

    // 匹配地图风格
    DialogState.addState("setStudyMapRoute", {
        template: 'templates/SetStudyMapRoute.html',
        controller: 'SetStudyMapRouteController'
    });
});
